package com.four.service.impl;

import com.four.dao.RecordsMapper;
import com.four.pojo.Product;
import com.four.pojo.Records;
import com.four.pojo.Recordscr;
import com.four.service.IRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 王森
 * @create 2021-10-24 19:04
 */

@Service("recordsService")
public class RecordsServiceImpl implements IRecordsService {

    @Autowired
    @Qualifier("recordsMapper")
    private RecordsMapper recordsMapper;


    @Override
    public List<Product> recordsAll() {
        return recordsMapper.recordsAll();
    }

    @Override
    public List<Recordscr> recordscrAll() {
        return recordsMapper.recordscrAll();
    }

    @Override
    public int addRecords(Product product) {
        return recordsMapper.addRecords(product);
    }


    @Override
    public List<Recordscr> recordsAllBy(Recordscr recordscr) {
        return recordsMapper.recordsAllBy(recordscr);
    }

    @Override
    public Product recordsBY(int pid) {
        return recordsMapper.recordsBY(pid);
    }

    @Override
    public int uprecords(Product product) {
        return recordsMapper.uprecords(product);
    }


    @Override
    public int addRecordsRu(Recordscr recordscr) {
        return recordsMapper.addRecordsRu(recordscr);
    }

    @Override
    public int OutRecords(Product product) {
        return recordsMapper.OutRecords(product);
    }


    @Override
    public int addRecordsChu(Recordscr recordscr) {
        return recordsMapper.addRecordsChu(recordscr);
    }


}
